package bdqn.t09.service.impl;

import bdqn.t09.dao.HatAreaMapper;
import bdqn.t09.pojo.HatArea;
import bdqn.t09.service.HatAreaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HatAreaServiceimpl implements HatAreaService{

    @Resource
    private HatAreaMapper hatAreaMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hatAreaMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HatArea record) {
        return hatAreaMapper.insert(record);
    }

    @Override
    public int insertSelective(HatArea record) {
        return hatAreaMapper.insertSelective(record);
    }

    @Override
    public HatArea selectByPrimaryKey(Integer id) {
        return hatAreaMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HatArea record) {
        return hatAreaMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HatArea record) {
        return hatAreaMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HatArea> selectAllArea() {
        return hatAreaMapper.selectAllArea();
    }

}
